# 使用Nginx镜像
FROM nginx:alpine
# 复制构建后的文件到Nginx目录
COPY dist/ /usr/share/nginx/html
# 覆盖默认Nginx配置
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 暴露端口
EXPOSE 80
# 启动Nginx
CMD ["nginx", "-g", "daemon off;"]